/*
 * @Autor: dingxiaolin
 * @Date: 2021-02-04 10:22:36
 * @LastEditors: dingxiaolin
 * @LastEditTime: 2021-02-04 10:36:38
 */
export default {
    ellipsis(value: string) {
        if (!value) return '';
        if (value.length > 4) {
            return value.slice(0, 4) + '...';
        }
        return value;
    }
};
